package com.jtp7.demo.entity.mapstruct;

import com.jtp7.demo.entity.TruckInfo;
import com.jtp7.demo.entity.vo.AddTruckInfoDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 梅玉松
 * @project: JTP_DEMO
 * @create2021-08-05-10:01 描述: 转换类
 */
@Mapper
public interface TruckInfoMapsTruct {

    TruckInfoMapsTruct INSTANCE =  Mappers.getMapper(TruckInfoMapsTruct.class);

    TruckInfo addTruckintoToTruckInfo(AddTruckInfoDTO addTruckInfoDTO);

    List<TruckInfo> addTruckintoListToTruckInfoList(List<AddTruckInfoDTO> addTruckInfoDTO);

}
